export class StringBuilder {
  _string:string = "";
  tag:number|null = null;
  constructor(charcode:number | null = null) {
    if(charcode) {
      this._string = String.fromCharCode(charcode);
    }
  }
  append(charcode:number) {
    let str = String.fromCharCode(charcode);
    this.appendString(str);
  }
  appendString(str:string) {
    this._string += str;
  }
  toString() {
    return this._string;
  }
}